package com.ruyuan.rapid.core.netty.processor.filter;

/**
 * 过滤器类型定义
 * @author mac
 */
public enum ProcessorFilterType {

    PRE("pre", "前置过滤器"),
    ROUTE("route", "中置过滤器"),
    ERROR("error", "异常过滤器"),
    POST("post", "后置过滤器"),
    ;

    private final String code;

    private final String message;

    ProcessorFilterType(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
